field<'model, 'target>Type
PackageReified.Schema
Declares one field inside
schema<'model> { }, and configures it when followed by a block.
Specification
Kind
Type
Members
41
Examples
0
``.ctor``Signature
field(getter)
``.ctor``Signature
field(name, getter)
AliasSignature
alias name
AliasSignature
alias name
AliasSignature
alias name
Summary
| Name | Signature | Synopsis |
|---|---|---|
| Operations | ||
| ``.ctor`` | field(getter) | Declares a field, deriving its camel-cased wire name from the property getter. |
| ``.ctor`` | field(name, getter) | No description available. |
| Alias | alias name | Adds one exact, input-only alternate wire name for this field. |
| Alias | alias name | Adds one exact, input-only alternate wire name for this field. |
| Alias | alias name | Adds one exact, input-only alternate wire name for this field. |
| Alias | alias name | Adds one exact, input-only alternate wire name for this field. |
| Aliases | aliases names | Adds exact, input-only alternate wire names for this field. |
| Aliases | aliases names | Adds exact, input-only alternate wire names for this field. |
| Aliases | aliases names | Adds exact, input-only alternate wire names for this field. |
| Aliases | aliases names | Adds exact, input-only alternate wire names for this field. |
| Constrain | constrain constraint' | Adds a portable constraint to the field's current schema value. |
| Constrain | constrain constraint' | Adds another portable constraint to an inferred field schema. |
| Constrain | constrain constraint' | Adds a portable constraint to the field's current schema value. |
| Constraints | constraints constraints | Adds portable constraints to the field's current schema value in declaration order. |
| Constraints | constraints constraints | Adds portable constraints to the field's inferred schema in declaration order. |
| Constraints | constraints constraints | Adds portable constraints to the field's inferred schema in declaration order. |
| DefaultValue | defaultValue value | Supplies the field value when the input omits it. |
| DefaultValue | defaultValue value | Supplies the field value when the input omits it. |
| DefaultValue | defaultValue value | Supplies the field value when the input omits it. |
| Describe | describe text | Adds human-readable description metadata to the field's current schema. |
| Describe | describe text | Adds human-readable description metadata to the field's schema. |
| Describe | describe text | Adds human-readable description metadata to the field's schema. |
| Format | format format | Adds format metadata to the field's current schema. |
| Format | format format | Adds format metadata to the field's schema. |
| Format | format format | Adds format metadata to the field's schema. |
| MayOmit | mayOmit | Allows this option-typed field's boundary input to be omitted. |
| MustSupply | mustSupply | Requires this field's boundary input to be supplied. |
| MustSupply | mustSupply | Requires this field's boundary input to be supplied. |
| MustSupply | mustSupply | Requires this field's boundary input to be supplied. |
| Refine | refine | Refines the current raw schema with the destination type's canonical refinement. |
| Refine | refine refinement | Refines the current raw schema with an explicit refinement. |
| Run | this.Run | No description available. |
| Run | this.Run | No description available. |
| Run | this.Run | No description available. |
| Run | this.Run | No description available. |
| Validate | validate validation | Adds executable validation after the pending refinement. |
| Validate | validate validation | Adds executable validation to the field's current schema value. |
| Validate | validate validation | Adds another executable validation to an inferred field schema. |
| Validate | validate validation | Adds executable validation to the field's current schema value. |
| WithSchema | withSchema schema | Supplies the schema transformed by the remaining operations in this field block. |
| Yield | this.Yield | No description available. |
Operations
kind:member
Declares a field, deriving its camel-cased wire name from the property getter.
Parameters
| Name | Type | Description |
|---|---|---|
| getter | Expr<('model -> 'target)> |
Returns
field<'model, 'target>
Verification Examples
type Signup = { Email: string }
field (fun (s: Signup) -> s.Email) // wire name "email"kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
Allows this option-typed field's boundary input to be omitted.
Returns
FieldWorking<'model, 'target, 'current option>
Verification Examples
open Reified.SchemaDSL
type Signup = { Nickname: string option }
schema<Signup> {
field _.Nickname { mayOmit }
construct (fun nickname -> { Nickname = nickname })
}kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member
kind:member